package com.yuanfeng.biz.front.order.service;
import com.yuanfeng.biz.front.order.dao.OrderDaoImpl;
import com.yuanfeng.entity.Orders;
import com.yuanfeng.biz.front.order.dao.OrderDao;

import java.util.List;

public class OrderServiceImpl implements OrderService {
	private OrderDao dao = new OrderDaoImpl();
	public void saveOrder(Orders order) {
		dao.saveOrder(order);
	}
	public List<Orders> queryOrders(String userId) {
		return dao.queryOrders(userId);
	}
	public Orders oneOrder(Orders order) {
		return dao.oneOrder(order);
	}
	public void cancle(Orders order) {
		dao.cancle(order);
	}
}
